var backgroundLoggingFeature; // shorthand for logging to the console 
//without having to type the whole attribute name : chrome.extension.getBackgroundPage().console.log(xxx)

/////////////////////////////////// INITIALIZATION
$(document).ready(function () {  
    backgroundLoggingFeature=chrome.extension.getBackgroundPage().console;
    
    
    //binding handlers to events
    $("#applyRgbaValue").click(function() {                
        var inputRgba=$("#inputRgbaValueToApply").val();
        
        inputRgba="rgb("+inputRgba+")";
        
        $("body").css("background-color",inputRgba);
        
        backgroundLoggingFeature.log("labJqueryLocal.js: applied color "+inputRgba);        
    });
      
    
    backgroundLoggingFeature.log("labJqueryLocal.js: initialized.. ");        
    
    
    
    
    
});